import { http } from '@/plugins/axios/index';
/*

  用户 登录相关

*/

//用户登录
export const loginAPI = (params) => {
  return http(`/yjz-sso/lawtrain/bindVX.do`, params, {
    isAuth: false
  }).then((res) => {
    return res;
  });
};

export const getPhoneCodeByPhoneAPI = (params) => {
  return http(`/yjz-sso/lawtrain/getPhoneCode.do`, params, {
    isAuth: false,
    method: 'GET'
  }).then((res) => {
    return res;
  });
};
//设置密码
export const SetPassword = (params) => {
  return http(`/yjz-user/lawtrain/pcUserInfo/set_new_password.do`, params, {
    isAuth: false,
    method: 'GET'
  }).then((res) => {
    return res;
  });
};



//用户登录
export const logoutAPI = (params) => {
  return http(`/oa-console/user/destroy.do`, params, {
    isAuth: false
  }).then((res) => res);
};
